<link media = "all" rel = "stylesheet" type = "text/css" href = "/public/plugin/simditor/styles/font-awesome.css" />
<link media = "all" rel = "stylesheet" type = "text/css" href = "/public/plugin/simditor/styles/simditor.css" />
<link media = "all" rel = "stylesheet" type = "text/css" href = "/public/plugin/simditor/styles/simditor-emoji.css" />
<script type = "text/javascript" src = "/public/plugin/simditor/scripts/simditor-all.js"></script>
<script type = "text/javascript" src = "/public/plugin/simditor/scripts/simditor-markdown.js"></script>
<script type = "text/javascript" src = "/public/plugin/simditor/scripts/simditor-emoji.js"></script>
<script type = "text/javascript">
    var editor;
    $(function () {
        var toolbar;
        toolbar = ['emoji', 'title', 'bold', 'italic', 'underline', 'strikethrough', 'color', '|', 'ol', 'ul', 'blockquote', 'code', 'table', '|', 'link', 'image'];
        return editor = new Simditor({
            textarea: $('.simditorarea'),
            toolbar: toolbar,
            pasteImage: true,
            defaultImage: '/public/image/144.png',
            markdown: true,
            emoji: {
                imagePath: '/public/image/emoji/'
            },
            upload: {
                url: '{link=common.public.uploadimage}'
            }
        });
    });
</script>
<style rel="stylesheet" type="text/css">
    .simditor .simditor-body b { width: auto !important; }
</style>